<?php

!defined('IN_FENGTOP') && exit('Access Denied');

class control extends base{

	function control(& $get,& $post){
		$this->base( & $get,& $post);
		$this->load('word');
		$this->setlang($this->setting['lang_name'],'back');
	}

	function dodefault(){
		if(isset($this->post['submit'])){
		
		}else{
			$page = max(1, intval($this->get[2]));
			$num = isset($this->setting['list_prepage'])?$this->setting['list_prepage']:20;
			$start_limit = ($page - 1) * $num;
			$allnum = $_ENV['word']->get_word_num();
			$words = $_ENV['word']->get_word_list($start_limit,$num);
			$departstr=$this->multi($allnum, $num, $page,'admin_word-default');
			$this->view->assign('departstr',$departstr);
			$this->view->assign("docsum",$allnum);
			$this->view->assign('words',$words);
			$this->view->display('admin_word.tpl');
		}
	}

	
}